package com.wen.edu.api;

import com.wen.commonutils.ordervo.OrderUcenterMember;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author：Win
 * @Date: 2021/6/17 14:25
 * @Description: 远程调用service-ucenter用户模块下的方法
 */
@FeignClient(name = "service-ucenter")
@Component
public interface UcenterApi {

    /**
     * 根据用户id查询用户信息
     *
     * @param memberId id
     * @return ResultEntity
     */
    @GetMapping("/edu/ucenter/service/member/getMemberInfoById/{memberId}")
    OrderUcenterMember getMemberInfoById(@PathVariable("memberId") String memberId);
}
